package handler

import (
	"context"

	"go-micro.dev/v4/logger"

	pb "goods/proto"
)

type Goods struct{}

func (e *Goods) AddGoods(ctx context.Context, req *pb.AddGoodsReq, resp *pb.AddGoodsResp) error {
	logger.Infof("Received Goods.Call request: %v", req)
	resp.Message = "add_success!"
	resp.Success = true
	return nil
}
